package com.hbsx.why.ui.home;

import android.content.Context;
import android.content.Intent;
import android.view.View;

import com.hbsx.why.R;
import com.hbsx.why.utils.LogUtils;

/**
 * Created by User on 2017/8/29.
 */

public class MenuAdd1 {
    private Context context;
    public MenuAdd1(Context context) {
        this.context = context;
    }

    public void initView(View view, final String id) {
        view.findViewById(R.id.per_pager1_wh).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                context.startActivity(new Intent(context, WenWuActivity.class).putExtra("title","文物"));
            }
        });
        view.findViewById(R.id.per_pager1_jy).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                context.startActivity(new Intent(context, JiaoYuActivity.class).putExtra("title","教育"));
            }
        });
        view.findViewById(R.id.per_pager1_gx).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                context.startActivity(new Intent(context, GuoXueActivity.class).putExtra("title","国学"));
            }
        });
        view.findViewById(R.id.per_pager1_qy).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                context.startActivity(new Intent(context, QuYiActivity.class).putExtra("title","曲艺"));
            }
        });
        view.findViewById(R.id.per_pager1_xq).setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                context.startActivity(new Intent(context, XiQuActivity.class).putExtra("title","戏曲"));
            }
        });
    }
}
